package net.entelijan.cobean.bind.impl;

import net.entelijan.cobean.bind.IModelChangeListener;

public class ReportingModelChangeListener implements IModelChangeListener {

    private StringBuffer buffer = new StringBuffer();

    public ReportingModelChangeListener() {
        super();
        buffer.append("I,");
    }

    @Override
    public String getPropertyName() {
        buffer.append("GPN,");
        return "dummy";
    }

    @Override
    public void prepareComponent(Object oldVal, Object newVal) {
        buffer.append("PC,");
    }

    @Override
    public void updateComponent() {
        buffer.append("UC,");
    }

    public StringBuffer getBuffer() {
        return buffer;
    }

    public void setBuffer(StringBuffer buffer) {
        this.buffer = buffer;
    }

}
